<template>
  <div class="button">
    <div class="btn">{{ element.text }}</div>
  </div>
</template>

<script setup>
const props = defineProps({
  element: {
    type: Object,
    default: () => ({})
  }
})
defineOptions({
  name: 'my-button'
})
</script>

<style lang="scss" scoped>
.button {
  margin: 10px;
  .btn {
    width: 250px;
    height: 30px;
    line-height: 60rpx;
    margin: 0 auto;
    text-align: center;
    font-size: 24rpx;
    color: #000;
    border: 1px solid #000;
  }
}
</style>
